package com.roger.myHome.entity.dto;

import lombok.Data;
import lombok.Value;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class FinancialAddReq implements Serializable {

    @NotEmpty(message = "产品名称不能为空")
    @NotNull(message = "产品名称不能为空")
    private String productName;

    @NotEmpty(message = "产品编号不能为空")
    @NotNull(message = "产品编号不能为空")
    private String productNo;

    private String productType;

    private Float interest;

    @NotNull(message = "期限不能为空")
    private Integer deadline;

    private String redemptionType;

    @NotNull(message = "购买金额不能为空")
    private BigDecimal buyMoney;

    @NotEmpty(message = "购买日期不能为空")
    @NotNull(message = "购买不能为空")
    private String buyDate;

    private String channel;

    private String transferInBank;

    private String transferOutBank;

    private String riskLevel;

    private String remark;

    private Long createUser;
}
